/*
 * @Author: anxia.ack anchenkai@come-future.com
 * @Date: 2025-03-22 15:59:47
 * @LastEditors: anxia.ack anchenkai@come-future.com
 * @LastEditTime: 2025-04-21 09:47:34
 * @FilePath: /free-learning-front/src/main.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import pinia from "./store";
import ElementPlus from "element-plus";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "element-plus/dist/index.css";
import "element-plus/theme-chalk/el-message.css";
import WebSocketManager from "@/utils/websocket";

// 导入全局样式
import "./style.css";
import "./assets/styles/education.css";

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

// 连接WebSocket
WebSocketManager.setupWebSocket();

// 使用Pinia和Vue Router
app.use(pinia);
app.use(router);
app.use(ElementPlus);

app.mount("#app");
